package com.slf.common.client.login;

public class WSLoginProxyProxy implements WSLoginProxy {
  private String _endpoint = null;
  private WSLoginProxy wSLoginProxy = null;
  
  public WSLoginProxyProxy() {
    _initWSLoginProxyProxy();
  }
  
  public WSLoginProxyProxy(String endpoint) {
    _endpoint = endpoint;
    _initWSLoginProxyProxy();
  }
  
  private void _initWSLoginProxyProxy() {
    try {
      wSLoginProxy = (new WSLoginProxyServiceLocator()).getWSLogin();
      if (wSLoginProxy != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)wSLoginProxy)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)wSLoginProxy)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (wSLoginProxy != null)
      ((javax.xml.rpc.Stub)wSLoginProxy)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public WSLoginProxy getWSLoginProxy() {
    if (wSLoginProxy == null)
      _initWSLoginProxyProxy();
    return wSLoginProxy;
  }
  
  public java.lang.String login(java.lang.String strUserId, java.lang.String strPassword, java.lang.String strIp) throws java.rmi.RemoteException{
    if (wSLoginProxy == null)
      _initWSLoginProxyProxy();
    return wSLoginProxy.login(strUserId, strPassword, strIp);
  }
  
  public java.lang.String login(java.lang.String strUserId, java.lang.String strPassword) throws java.rmi.RemoteException{
    if (wSLoginProxy == null)
      _initWSLoginProxyProxy();
    return wSLoginProxy.login(strUserId, strPassword);
  }
  
  public void logout(java.lang.String authinfo) throws java.rmi.RemoteException{
    if (wSLoginProxy == null)
      _initWSLoginProxyProxy();
    wSLoginProxy.logout(authinfo);
  }
  
  
}